package repository

import "strings"

type repoLocalJarFileNameService struct {
}

func (e *repoLocalJarFileNameService) GetModelName(jarFileName string) string {
	// 检查：是否为。jar文件
	if !strings.HasSuffix(strings.ToLower(jarFileName), ".jar") {
		return ""
	}

	// 去除.jar的后缀，为拆分数据做准备
	return jarFileName[:len(jarFileName)-len(".jar")]
}
